<?php

namespace App\Models\fund;

use App\Models\base\traits\HasOwner;
use App\Models\Model;

/**
 * App\Models\fund\Recharge
 *
 * @property int $id
 * @property int $user_id 关联用户ID
 * @property string $out_trade_no 第三方订单号
 * @property string $trade_no 我方订单号
 * @property int $pay_type 支付类型  1=>'支付宝',2=>'微信'
 * @property float $pay_money 支付金额
 * @property int $type 充值类型  1=>'钻石充值',  2=>'门槛费',3=>'会员购买'
 * @property string $title 付款标题
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property-read \App\Models\User $user
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\fund\Recharge newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\fund\Recharge newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\fund\Recharge owner($userId)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\fund\Recharge query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\fund\Recharge whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\fund\Recharge whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\fund\Recharge whereOutTradeNo($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\fund\Recharge wherePayMoney($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\fund\Recharge wherePayType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\fund\Recharge whereTitle($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\fund\Recharge whereTradeNo($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\fund\Recharge whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\fund\Recharge whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\fund\Recharge whereUserId($value)
 * @mixin \Eloquent
 */
class Recharge extends Model
{
    use HasOwner;

    protected $fillable = [
        'user_id',
        'out_trade_no',
        'trade_no',
        'pay_type',
        'pay_money',
        'title'
    ];
}
